package prog.view;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
import javax.swing.*;
import java.awt.*;
/**
 *
 * @author MrKhoai
 */
public class MainForm {
        public JFrame frame;
        public ToolBarPanel pnToolbar;
        public WorkAreaPanel pnWorkArea;
        public ChannelPanel pnChannel;
    public MainForm() {
        
        frame = new JFrame();
        pnToolbar = new ToolBarPanel();
        pnWorkArea = new WorkAreaPanel();
        pnChannel = new ChannelPanel();
        JPanel fcontent = new JPanel(new GridBagLayout());
        fcontent.add(pnToolbar, MyGridBagConstraints.createHorzConstraints(0, 0, 1, 1, 0.3, 0, 0, 0, 0));
        fcontent.add(pnWorkArea, MyGridBagConstraints.createBothConstraints(0, 1, 1, 1, 0.3, 0.3, 0, 0, 0, 0));
        fcontent.add(pnChannel, MyGridBagConstraints.createBothConstraints(0, 2, 1, 1, 0.3, 0.3, 0, 0, 0, 0));
        frame.setContentPane(fcontent);
        frame.setMinimumSize(new Dimension(1024,650));
        frame.setLocation(200,0);
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    }

    public void showForm(boolean isShow) {
        frame.setVisible(isShow);
    }
}
